﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Dapper.Contrib.Extensions;

namespace RecognitionForm.Handler
{
    [Table("StaffInfo")]
    public class StaffInfo
    {
        [ExplicitKey]
        public string code { get; set; }

        public string name { get; set; }

        public string depart { get; set; }

        public string gender { get; set; }

        public int groupId { get; set; }

        public DateTime birthday { get; set; }

        public string photo { get; set; }

        public char accAuth { get; set; }

        public bool isNew { get { return true; } }
    }

    [Table("RecognitionLog")]
    public class RecognitionLogInfo
    {
        [ExplicitKey]
        public string code { get; set; }

        public string staffcode { get; set; }

        public string gender { get; set; }

        public int age { get; set; }

        public DateTime recognitionTime { get; set; }

        public DateTime credate { get; set; }
        
    }
}

